.albums-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: white;
  padding-top: 60px; /* Account for fixed header */
}

.albums-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Albums List View */
.albums-list {
  width: 100%;
}

.albums-header {
  text-align: center;
  margin-bottom: 40px;
}

.albums-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.albums-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 30px;
}

.albums-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.view-mode-toggle {
  display: flex;
  gap: 5px;
}

.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.view-mode-btn.active {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
}

.view-icon {
  font-size: 16px;
}

.create-album-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-album-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.albums-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Albums Grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.albums-grid.list-view {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.album-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
}

.album-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.album-emoji {
  font-size: 4rem;
}

.album-details {
  padding: 20px;
}

.album-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.album-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.4;
}

.album-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* List View for Albums */
.albums-grid.list-view .album-card {
  display: flex;
  height: auto;
}

.albums-grid.list-view .album-cover {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.albums-grid.list-view .album-emoji {
  font-size: 3rem;
}

.albums-grid.list-view .album-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Album Detail View */
.album-detail {
  width: 100%;
}

.album-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.album-info {
  text-align: center;
}

.album-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.album-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.album-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.album-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.action-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Album Photos */
.album-photos {
  margin-top: 20px;
}

.album-photos .view-mode-toggle {
  justify-content: center;
  margin-bottom: 25px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.photo-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.photo-thumbnail {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-emoji {
  font-size: 3rem;
}

.photo-info {
  padding: 15px;
}

.photo-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* List View for Photos */
.photo-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.photo-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.photo-list .photo-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.photo-list .photo-emoji {
  font-size: 2rem;
}

.photo-list .photo-info {
  flex: 1;
}

/* Photo Actions */
.photo-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  padding-top: 0;
}

.photo-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.photo-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.photo-action-btn.delete:hover {
  background: rgba(255, 67, 54, 0.2);
  border-color: rgba(255, 67, 54, 0.5);
}

.photo-list .photo-actions {
  padding: 0;
  padding-right: 15px;
}

/* Delete Confirmation Modal */
.delete-confirmation {
  text-align: center;
  padding: 20px 0;
}

.delete-confirmation p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.warning-text {
  color: #ff4336 !important;
  font-weight: 500;
}

.delete-btn {
  background: #ff4336 !important;
  color: white !important;
}

.delete-btn:hover {
  background: #d32f2f !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 67, 54, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .albums-content {
    padding: 20px 15px;
  }
  
  .albums-title {
    font-size: 2rem;
  }
  
  .albums-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .album-header {
    padding: 20px;
  }
  
  .album-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .albums-title {
    font-size: 1.8rem;
  }
  
  .albums-grid {
    grid-template-columns: 1fr;
  }
  
  .albums-grid.list-view .album-card {
    flex-direction: column;
  }
  
  .albums-grid.list-view .album-cover {
    width: 100%;
    height: 150px;
  }
  
  .album-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .photo-thumbnail {
    height: 120px;
  }
  
  .photo-emoji {
    font-size: 2.5rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 25px;
}

.cancel-btn,
.create-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.create-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: white;
}

.create-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .cancel-btn,
  .create-btn {
    width: 100%;
  }
}

/* Add Photos Modal Styles */
.add-photos-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: rgba(0, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.upload-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-icon {
  font-size: 3rem;
  color: rgba(0, 255, 255, 0.7);
}

.selected-photos {
  max-height: 300px;
  overflow-y: auto;
}

.selected-photos h3 {
  margin-bottom: 15px;
  color: white;
}

.photo-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-preview-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.photo-preview-thumbnail {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 1.5rem;
  overflow: hidden;
}

.photo-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-info {
  flex: 1;
}

.photo-preview-name {
  font-weight: 500;
  color: white;
  margin-bottom: 5px;
}

.photo-preview-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Share Modal Styles */
.share-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.share-info h3 {
  margin-bottom: 10px;
  color: white;
}

.share-info p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.share-link-container {
  display: flex;
  gap: 10px;
}

.share-link-input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
}

.copy-link-btn {
  padding: 10px 15px;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: #00ffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link-btn:hover {
  background: rgba(0, 255, 255, 0.3);
}

.share-options h4 {
  margin-bottom: 15px;
  color: white;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.share-icon {
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .share-link-container {
    flex-direction: column;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-button {
    justify-content: center;
  }
}